﻿using System;
using System.Collections.Generic;
using System.ComponentModel.DataAnnotations;
using System.ComponentModel.DataAnnotations.Schema;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace SaleOfMoviesSystem.Sqlite.Models
{
    [Table(nameof(Ticket))]	//表名
    public class Ticket
    {
        [Required]
        [MaxLength(255)]
        [Key]
        public string TicketName { get; set; }

        [Required]
        public bool IsSaled { get; set; }

        //public List<Cinema> Cinemas { get; set; } = new List<Cinema>();
    }
}